﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElevatorSimulator
{
    class Person
    {
        int id;
        int startFloor;
        int destFloor;
        String direction;
        String status;

        public Person(int startFloor, int destFloor)
        {
            this.startFloor = startFloor;
            this.destFloor = destFloor;
            status = "IN";
            if (startFloor > destFloor)
            {
                direction = "DOWN";
            }
            else
            {
                direction = "UP";
            }
            Random randomGenerator = new Random();
            id = randomGenerator.Next(10000);

        }

        public String getDirection()
        {
            return direction;
        }

        public int getId()
        {
            return id;
        }

        public String getStatus()
        {
            return status;
        }

        public int getStartFloor()
        {
            return startFloor;
        }

        public int getDestFloor()
        {
            return destFloor;
        }
    }
}

